import instance from "../http/axios"
const one = (id) => {
    return instance(`/mall/cms-help-category/one/${id}`)
}
const modify_post = (data) => {
    return instance("/mall/cms-help-category/edit", {
        method: "post",
        data
    })
}
const del = (id) => {
    return instance(`/mall/cms-help-category/del/${id}`)
}

const add = (v) => {
    const { id, name, icon, helpCount, showStatus,sort } = v
    return instance('/mall/cms-help-category/add', {
        method: 'post',
        data:{
            id,
            name,
            icon,
            helpCount,
            showStatus,
            sort
        }
    })
}
export { one, modify_post, del, add }